package com.telecom.weixi.net;

public class RespResult {
	private ReqParam.ReqType reqType;
	private String resp;
	private int status;
	
	public final static int STATUS_OK 			= 0x00;
	public final static int STATUS_TIMEOUT 		= 0x01;
	public final static int STATUS_NETFAIL 		= 0x02;
	public final static int STATUS_ERR_OTHERS 	= 0x03;
	
	RespResult(ReqParam.ReqType type) {
		reqType = type;
		status = STATUS_OK;
		resp = "";
	}
	
	public void setStatus(int err){
		status = err;
	}
	
	public void setContent(String result){
		resp = result;
	}
	
	public String toString(){
		return resp;
	}
	
	public int getStatus()
	{
		return status;
	}
	public void setReqType(ReqParam.ReqType reqType) {
		this.reqType = reqType;
	}

	public ReqParam.ReqType getReqType() {
		return reqType;
	}
}
